

import { defAxios as request } from '@/utils/http';

// 表格请求API
export const useSourceApi = (req) => {
    return {
        /**
         * 解析SQL信息
         * 
         * @param {String} content SQL数据
         * @returns axios
         */
        analyseSQL: function (content) {
            const reqAxios = req || request;
            return reqAxios({
                url: '/data/parse',
                method: 'POST',
                data: {
                    content: content,
                },
            });
        },
    }
};